import request from '@/utils/request'
import qs from 'qs'

export function add(id, content, images, orderBy) {
    return request({
        url: '/api/findContent/add.do',
        method: 'post',
        data: qs.stringify({
            id, content, images, orderBy
        })
    })
}


export function del(id) {
    return request({
        url: '/api/findContent/delete.do',
        method: 'get',
        params: { id }
    })
}
export function list(index, pageSize) {
    return request({
        url: '/api/findContent/list.do',
        method: 'get',
        params: {
            index, pageSize
        }
    })
}